
app.service('searchService', function($http,$q){
	var def = $q.defer();
	var url = 'http://m.juanpi.com/cate/catelist?pf=8&area=4&bi=222&dtype=jsonp&_=1488350352595&callback=JSON_CALLBACK';
	$http.jsonp(url).success(function(data){
		
			def.resolve(data);
	})
	return def.promise;
})